package com.dms.modules.user.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
@ApiModel(value = "MerchantApplyDTO", description = "用户申请成为商家的请求参数")
public class MerchantApplyDTO {
    
    @NotBlank(message = "店铺名称不能为空")
    @ApiModelProperty(value = "店铺名称", required = true)
    private String shopName;
    
    @ApiModelProperty(value = "店铺logo")
    private String shopLogo;
    
    @ApiModelProperty(value = "店铺描述")
    private String shopDescription;
    
    @NotBlank(message = "营业执照号不能为空")
    @ApiModelProperty(value = "营业执照号", required = true)
    private String businessLicense;
    
    @NotBlank(message = "法人姓名不能为空")
    @ApiModelProperty(value = "法人姓名", required = true)
    private String legalPerson;
    
    @NotBlank(message = "联系电话不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    @ApiModelProperty(value = "联系电话", required = true)
    private String contactPhone;
    
    @ApiModelProperty(value = "联系邮箱")
    private String contactEmail;
    
    @NotBlank(message = "店铺地址不能为空")
    @ApiModelProperty(value = "店铺地址", required = true)
    private String address;
} 